package com.chen.demo.rhombus.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.chen.demo.rhombus.domain.entity.UserDo;
import com.chen.demo.rhombus.domain.enums.Type;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserDto implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private Type type;

    public UserDo toDo() {
        return BeanUtil.toBean(this, UserDo.class);
    }
}
